# Contributor: Mogens Jensen <mogj@fastmail.com>
# Maintainer: Mogens Jensen <mogj@fastmail.com>
pkgname=fxfloorboard-katana-mk2
pkgver=20240515
pkgrel=1
pkgdesc="Graphical editor for Boss Katana MKII guitar amplifier"
url="https://sourceforge.net/projects/fxfloorboard/"
arch="all"
license="GPL-2.0-or-later"
makedepends="alsa-lib-dev
	bluez-dev
	qt5-qtbase-dev
	qt5-qtconnectivity-dev
	"
options="!check" # No test suite
subpackages="$pkgname-doc"
source="https://downloads.sourceforge.net/fxfloorboard/Katana_Mk2_FxFloorBoard_source_code_$pkgver.zip
	use-standard-path-for-per-user-config.patch
	remove-program-expiration-code.patch
	set-correct-path-for-help-files.patch
	"
builddir="$srcdir"/Katana_Mk2_FxFloorBoard_source_code_"$pkgver"

build() {
	qmake-qt5
	make
}

package() {
	cd "$builddir"/packager

	install -Dm0755 Katana-MK2-FxFloorBoard "$pkgdir"/usr/bin/"$pkgname"

	install -Dm644 readme.txt "$pkgdir"/usr/share/doc/"$pkgname"/readme.txt
	install -Dm644 help/help.html "$pkgdir"/usr/share/doc/"$pkgname"/help/help.html

	cp -r help/help_files "$pkgdir"/usr/share/doc/"$pkgname"/help/
}

sha512sums="
2028106e0355e87c69a10c8bae1840f232b26539f2371dbbf6658d12d683e127dd66de4a8e6513a8408d6df0b50feeae089df9c0c40eb12d048b312cf7442edd  Katana_Mk2_FxFloorBoard_source_code_20240515.zip
c33cae6d4c954a6391654d3de09e4c52d2d9c9fb0dd4b65fa207bc53023586d7f2b3a18eeacee75d0dd93b31ecacef014ff818a8dc177e9d001fd26206798791  use-standard-path-for-per-user-config.patch
6043e6759feb083b0417f46170bd0879edaeed9510d332acbc71dd8fcd4b6de24f743e65cc61be89357934f4e80f95b28cda613701d94b14025662d82c1f81ff  remove-program-expiration-code.patch
648673412befce7aec5a3c94eadcd1a506f81f4b9d511ad831c91e074e6c472210318cca0a047c1bdc4809ed2d2c7fb2b27e0f6a49c3a137f7e5c4e5f879bb34  set-correct-path-for-help-files.patch
"
